import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import pinia from '@/store'
//引入自动注册组件
import gloablComponent from './components/index';
import {ElMessage, ElMessageBox} from 'element-plus'
//引入自定义指令文件
import {isHasButton} from '@/directive/permission'
import "element-plus/theme-chalk/index.css"
import './styles/index.scss'

const app = createApp(App);

app.provide('$message',ElMessage)
app.provide('$messageBox',ElMessageBox)

isHasButton(app)

app.use(router)
app.use(pinia)
app.use(gloablComponent)
app.mount('#app')



